Document Templates

Description

Document Templates topics in Alpha Anywhere:

Name
Description
Document Templates

An overview of the Document Template component, a fast alternative to Reports for generating PDF or Word documents using JSON data.

Introduction to Document Templates

A technical deep-dive into the JSON structure of Document Templates, explaining the 'table', 'columns', and 'body' objects.

Mixing Fields And Text

Techniques for combining static text with dynamic data fields using simple text templates, HTML templates, and complex content arrays.

Image Fields

Learn how to include images in your Document Templates using the imagefield property and control their dimensions.

Page Headers and Footers

How to define page headers and footers, including placeholders for page numbers, counts, and dates.

Conditional Columns

How to conditionally hide or show columns in a Document Template based on logical data fields.

Table Of Contents And Index

Learn how to generate a Table of Contents and an Index in your Document Templates, including using bookmarks, indentation, and custom index templates.

Page Layout

Configure page size, orientation, and margins using the document 'info' object.

Limitations of Document Template

A comparison of Document Templates versus the Report Writer, highlighting specific limitations (e.g., snaking columns) and advantages (speed and DOCX support).